﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;

namespace ARR.Entities
{    
    [DataContract]
    [Serializable]
    public class CategoryMargin : EntityBase
    {
        [DataMember]
        private CategoryMarginRow row;

        public CategoryMargin(CategoryMarginRow row)
        {
            this.row = row;
        }

        public CategoryMargin()
        {
            this.row = new CategoryMarginRow();
        }

        [DataMember]
        public int Id
        {
            get { return row.Id; }
            set { row.Id = value; }
        }

        [DataMember]
        public string Name
        {
            get { return row.Name; }
            set { row.Name = value; }
        }

        [DataMember]
        public decimal? Margin
        {
            get { return row.Margin; }
            set { row.Margin = value; }
        }


        public CategoryMarginRow GetRow()
        {
            return row;
        }

    } 
}
